From: Debian Science Maintainers Date: Tue, 9 Dec 2025 11:19:37 +0000 (+0000) Subject: Mark tests that need openpyxl X-Git-Tag: archive/raspbian/2.3.3+dfsg-3+rpi1^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3c6219692be2d674f677d67dc76e35379f19de9a;p=pandas.git Mark tests that need openpyxl (These do the usual loop through engine/read_ext but actually use .xlsx every time) Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name allow_no_openpyxl.patch --- diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py index c62144ad..63e8ce3b 100644 --- a/pandas/tests/io/excel/test_readers.py +++ b/pandas/tests/io/excel/test_readers.py @@ -1655,12 +1655,14 @@ class TestExcelFileRead: expected = pd.read_excel("test1" + read_ext, engine=engine) tm.assert_frame_equal(result, expected) + @td.skip_if_no("openpyxl") def test_read_excel_header_index_out_of_range(self, engine): # GH#43143 with open("df_header_oob.xlsx", "rb") as f: with pytest.raises(ValueError, match="exceeds maximum"): pd.read_excel(f, header=[0, 1]) + @td.skip_if_no("openpyxl") @pytest.mark.parametrize("filename", ["df_empty.xlsx", "df_equals.xlsx"]) def test_header_with_index_col(self, filename): # GH 33476